package com.weiai.wedding.util;
/**
 * 常量类定义
 * @author wangweiheng
 *
 */
public class Constants {
	
	public static final String REXG = ","; //文件分隔符
	
	public static final String PREFIX = "*"; //后缀
	
	public static final String DOWNLOAD = "download";//定义公共下载模板文件夹
	
	//public static final String DIR = "D://fileManage";//文件根路径
	public static final String DIR ="/Users/wangweiheng";
	public static final String RESOURCES = "resources"; //资源文件路径
	
	public static final String RES_TYPE_TXT = "txt";//定义彩信资源类型 文本类型
	
	public static final String RES_TYPE_IMG = "img";//定义彩信资源类型 图片类型
	public static final String TEMP_FILE_PATH="d:\\temp";
	
	/**
	 * 默认上传域 domain
	 */
	public static final String UPLOAD_DOMAIN_KEY_DEFAULT="default.domain";
	
	/**
	 * 文件上传 图片 domain 
	 */
	public static final String UPLOAD_DOMAIN_KEY_IMAGE="image.domain";
	/**
	 * 文件上传 视频 domain
	 */
	public static final String UPLOAD_DOMAIN_KEY_VIDEO="video.domain";
	/**
	 * 文件上传 doc domain
	 */
	public static final String UPLOAD_DOMAIN_KEY_DOC="doc.domain";
	
	/**
	 * 上传图片格式
	 */
	public static final String[] IMAGE_SUFFIX={".bmp",".jpg",".jpeg",".png",".gif"};
	
	/**
	 * 上传视频格式
	 */
	public static final String[] VIDEO_SUFFIX={".avi",".rm",".rmvb",".mpeg",".mpg",".dat",
		".mov",".qt",".asf",".wmv",".mp4",".mp3"};
	
	/**
	 * 上传文档格式
	 */
	public static final String[] DOC_SUFFIX={".xls",".doc",".txt",".docx",".xlsx",".ppt"};
	
	//public static final String CTX="http://localhost:8899/platform";
	public static final String CTX="http://192.168.1.61/platform";
	public static final String IMG="img";
	public static final String VIDEO="video";
	public static final String PPT="ppt";

	public static final String FAIL = "fail";

	public static final String SUCCESS = "success";
}
